package com.example.base.demo.sp;


import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class TestApplicationListener{


        @EventListener(classes={ TestEvent.class})
        public void listen(TestEvent testEvent){
            System.out.println(testEvent.getMsg());
        }
}